import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import path from "node:path";
/** @type {import('vite').UserConfig} */
// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue()],
  base: "/",
  resolve: {
    alias: {
      "@": path.resolve(__dirname, "./src"),
    },
  },
  server: {
    host: true,
    port: 3000,
    // proxy: {
    //   "/api": {
    //     target: "http://localhost:5173", // Adjust the target as needed
    //     changeOrigin: true,
    //     // rewrite: (path) => path.replace(/^\/api/, ""),
    //   },
    // },
  },
});
